﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Application.WebAPI.Provider
{
    /// <summary>
    /// Paths
    /// </summary>
    public static class Paths
    {
        /// <summary>
        /// Token请求路径
        /// </summary>
        public const string TokenPath = "/oauth2/token";

        public const string GrantType = "grant_type";
        public const string UserName = "username";
        public const string Password = "password";

        public static class GrantTypes
        {
            public const string Password = "password";
            public const string AuthorizationCode = "authorization_code";
            public const string ClientCredentials = "client_credentials";
            public const string RefreshToken = "refresh_token";
        }

        public static class TestAccount
        {
            public const string Account = "Test";
            public const string Password = "test";
        }

        public const string TokenUrl = "http://localhost:8923" + TokenPath;
    }
}